/* ============================================================
 * Display.css - 展示类组件样式
 * 
 * 定义用于展示数据和信息的UI组件样式
 * 包括：表格、列表、头像、标签、徽章、进度条、树形结构等
 * ============================================================ */

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
}

th {
  background: var(--bg);
}

/* 列表样式 */
.list {
  list-style: none;
  margin: 12px 0;
}

.list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* 头像组件 */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 6px 0;
}

/* 标签组件 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg);
  font-size: 12px;
  margin: 4px;
}

/* 徽章组件（数字标记） */
.badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 20px;
  margin-left: 4px;
}

/* 进度条容器 */
.progress {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin: 12px 0;
}

/* 进度条填充 */
.progress-bar {
  height: 100%;
  background: var(--main);
  border-radius: 4px;
  width: 60%;
}

/* 树形结构容器 */
.tree {
  list-style: none;
  margin: 12px 0;
}

.tree-item {
  padding: 4px 0;
  cursor: pointer;
}

.tree-children {
  margin-left: 20px;
  list-style: none;
}
